package com.likai.app;

import com.likai.service.IDemoProviderService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class App {
    public static void main(String [] args) throws Exception {
        //加载classpath下的配置文件
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext(new String[]{"dubbo-demo-provider.xml"});
        context.start();
        System.out.println("服务提供者向zookeeper注册中心注册服务成功（端口：20881）");
        //输入任意键退出
        System.in.read();
    }
}
